package com.hqs.listener.helper;

import android.content.Context;

import io.realm.Realm;
import io.realm.RealmConfiguration;

/**
 * Created by apple on 16/9/27.
 */

public class DBHelper {

    public static void init(Context context){

        Realm.init(context);
        RealmConfiguration.Builder builder = new RealmConfiguration.Builder();
        builder.deleteRealmIfMigrationNeeded();
        builder.name("hqs.realm");
        builder.schemaVersion(0);

        Realm.setDefaultConfiguration(builder.build());
    }

}
